package com.yzw.hello.model.dao.jpa.system.userDao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.yzw.hello.model.pojos.system.user.User;

@Repository
public interface UserDao extends CrudRepository<User, Integer> {

	@Query("from User u where u.id = :id")
	User findOne(@Param("id")Integer id);
	
}
